package com.ztesoft.web.common.vo;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;
import com.ztesoft.iocp.dto.HostConnMethodPO;

/**
 * 
 * 与IOCP同步数据VO
 * 
 * @author lin.weibin@zte.com.cn
 * @date 2015年9月10日
 * @since 1.0
 */
public class HostConnInfoVO extends AbstractDto {
    private Integer hostId;

    private String hostName;

    private String ip;

    private String busiSys;

    private String osType;

    private String state;

    private Date stateDate;

    private Date createDate;

    private String subSysIds;

    private String subSysNames;

    private String connMethods;
    
    private List<HostConnMethodVO> hostConnMethod;
    public Integer getHostId() {
        return hostId;
    }

    public void setHostId(Integer hostId) {
        this.hostId = hostId;
    }

    public String getHostName() {
        return StringUtils.isBlank(hostName) ? hostName : hostName.trim();
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getIp() {
        return StringUtils.isBlank(ip) ? ip : ip.trim();
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getBusiSys() {
        return StringUtils.isBlank(busiSys) ? busiSys : busiSys.trim();
    }

    public void setBusiSys(String busiSys) {
        this.busiSys = busiSys;
    }

    public String getOsType() {
        return StringUtils.isBlank(osType) ? osType : osType.trim();
    }

    public void setOsType(String osType) {
        this.osType = osType;
    }

    public String getState() {
        return StringUtils.isBlank(state) ? state : state.trim();
    }

    public void setState(String state) {
        this.state = state;
    }
	public Date getStateDate() {
		if (this.stateDate != null) 
			return (Date) stateDate.clone();
		return null;
	}

	public void setStateDate(Date stateDate) {
		if (stateDate == null) {
			this.stateDate = null;
		} else {			
			this.stateDate = (Date)stateDate.clone();
		}
	}

	public Date getCreateDate() {
		if(createDate == null) {
	        return null;
	    }
	    return (Date) createDate.clone();
	}

	public void setCreateDate(Date createDate) {
		if (createDate == null) {
			this.createDate = null;
		} else {			
			this.createDate = (Date) createDate.clone();
		}
	}
	
    public String getSubSysIds() {
        return subSysIds;
    }

    public void setSubSysIds(String subSysIds) {
        this.subSysIds = subSysIds;
    }

    public String getSubSysNames() {
        return subSysNames;
    }

    public void setSubSysNames(String subSysNames) {
        this.subSysNames = subSysNames;
    }

    public String getConnMethods() {
        return connMethods;
    }

    public void setConnMethods(String connMethods) {
        this.connMethods = connMethods;
    }

	public List<HostConnMethodVO> getHostConnMethod() {
		return hostConnMethod;
	}

	public void setHostConnMethod(List<HostConnMethodVO> hostConnMethod) {
		this.hostConnMethod = hostConnMethod;
	}


}